package com.navigation.action;

import com.navigation.action.base.BaseAction;
import com.navigation.model.Site;


public class UpdateSiteAction extends BaseAction{
	private Integer id;
	private String name;
	private String url;
	private String alexa;
	private Site site;
	
	@Override
	public String execute() throws Exception {
		site=new Site();
		site.setId(id);
		site.setName(name);
		site.setUrl(url);
		site.setAlexa(alexa);
		siteManager.update(site);
		System.out.println("siteName->" + getSite().getName());
		return SUCCESS;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getAlexa() {
		return alexa;
	}
	public void setAlexa(String alexa) {
		this.alexa = alexa;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Site getSite() {
		return site;
	}

	public void setSite(Site site) {
		this.site = site;
	}
}
